﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dominio
{
    public partial class Rol : IIdentificable
    {
        public int GetId()
        {
            return Id;
        }

        public override string ToString()
        {
            return Nombre;
        }

        public override bool Equals(object obj)
        {
            if (!(obj is Rol))
            {
                return false;
            }
            else
            {
                Rol rol = (Rol)obj;
                return rol.Id == Id;
            }
        }
    }
}
